package com.ddsfec.homepageapi.controller;

import com.ddsfec.homepageapi.entity.ResultBean;
import com.ddsfec.homepageapi.service.HomepageService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/homepage")
public class HomepageController {

    @Resource
    HomepageService homepageService;
    @RequestMapping("/seckill")
    public ResultBean seckillHomepage(){
         return homepageService.seckillHomepage();
    }

    @RequestMapping("/goods/allType")
    public ResultBean homeGoodsAllType(){
        return homepageService.homeGoodsAllType();
    }
}
